URL classAsResource = ResourceUtils.getClassResource(thisClass.getName());
File file = new File(classAsResource.getFile());
File dir = file.getParentFile();
if (dir == null)
{
throw new TranslatorException(methodName + " - can not retrieve directory for file '" + file + "'");
}
String className = thisClass.getName();
int index = className.indexOf('.');
String basePackage = null;
if (index != -1)