Added support for entity definitions as inner classes in ApplicationMetadata.