public List<String> getManagedClassNames() {
List<String> classes = (List<String>) unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES);
if(classes == null)
classes = new ArrayList<String>();
if(!!!internalExcludeUnlistedClasses()) {
AnnotationScanner scanner = AnnotationScannerFactory.getAnnotationScanner();
if(scanner != null)
classes.addAll(scanner.findJPAAnnotatedClasses(bundle));
}
return Collections.unmodifiableList(classes);
}