protected String determineLocation ( String location ) { if ( existsInDefaultLocation ( location ) ) { return defaultFolder ( ) + location ; } if ( ! existsInGivenLocation ( location ) ) { throw new InvalidResourceLocation ( "Unable to locate " + location + ". " + "File does not exist also in default location " + defaultLocation ( ) ) ; } return location ; }
Checks if file exists in the default location . If that s not the case file is looked up starting from the root .