Return only non empty classes in the REST interface.