class Reflections {

    String extractJavaFileName(File sourceDirectory, File file) {
        String diff = file.getAbsolutePath().substring(sourceDirectory.getAbsolutePath().length());
        String className = FilenameUtils.separatorsToUnix(diff).replace('/', '.');
        if (className.startsWith(".")) {
            className = className.substring(1);
        }
        if (className.endsWith(".java")) {
            className = className.substring(0, className.length() - ".java".length());
        }
        return className;
    }

    public  Reflections();

}