* @return The new concrete type.
*/
public NewConcreteType newConcreteType(final String name) {
Checker.notEmpty("parameter:name", name );
NewConcreteTypeImpl type = null;
final PrintWriter printWriter = this.tryCreateTypePrintWriter(name);
if (null != printWriter) {
type = new NewConcreteTypeImpl();
type.setGeneratorContext(this);
type.setName(name);
type.setPrintWriter(printWriter);
type.setSuperType(this.getObject());
type.setVisibility(Visibility.PUBLIC);
this.addNewType(type);
}
return type;