How do I get the location of the import directory in a java stored procedure

I can't find any documentation on retrieving the import directory from within a java stored procedure. I would like to retrieve the value of the current neo4j home and then append /imports so files that I want to process are picked up correctly. I would like to get the procedure to work in both the enterprise and community editions, which seem to have different installation/run paths.

Please have a look at