*/
public synchronized Morphia mapPackage(String packageName, boolean ignoreInvalidClasses) {
try {
for (Class c : ReflectionUtils.getClasses(packageName)) {
try {
Embedded embeddedAnn = ReflectionUtils.getClassEmbeddedAnnotation(c);
Entity classEntityAnnotation = ReflectionUtils.getClassEntityAnnotation(c);
if (classEntityAnnotation != null || embeddedAnn != null) {
map(c);
}
} catch (MappingException ex) {