}
private static String getDtoPluralName(Class<? extends Dto> type) {
Named name = type.getAnnotation(Named.class);
if (name != null) {
return name.plural();
} else {
// Dto default names always assumed to be singular
return getDtoSingularName(type) + "s";
}
}