added support for spring applications. now only need to import the spring config and autowired the location parser
return location only if its the only one