change UIContext into UIExecutionContext, change JavaSourceFacet.getSourceFolder() int JavaSourceFacet.getSourceDirectory()