small npe protection and resource freeing, no jira, just don't want to miss this possible problem
JBIDE-13557 additions for test and needs a merge
JBIDE-13408: factorized generate-repository-facade to parent
 JBIDE-13537 jpp not recognized by runtimes scanner. server is identified but not created
fixing pom.xml for new server adapter version
JBIDE-13557 additions for test