inp.close();
} catch (IOException e) {
throw new ContributionReadException(e);
}
JavaEEModuleHelper jmh = new JavaEEModuleHelper();
EjbModule em;
try {
em = jmh.getMetadataCompleteModules(tempFile.getAbsolutePath()).getEjbModules().get(0);
} catch(ContributionReadException e) {
if((e.getCause() instanceof UnknownModuleTypeException) ||
(e.getCause() instanceof UnsupportedModuleTypeException)) {
// Not an EJB jar
return null;