description.setPrimaryKeyType(entity.getPrimKeyClass());
//TODO: validation
final String localHome = entity.getLocalHome();
if (localHome != null) {
description.addLocalHome(localHome);
}
final String local = entity.getLocal();
if (local != null) {
description.addEjbLocalObjectView(local);