migrated ontologyindexer to spring mvc