@Override
protected void generateClassBody() throws UnableToCompleteException {
// Find the interface to implement
JClassType[] implementedInterfaces = baseType.getImplementedInterfaces();
for(JClassType iface : implementedInterfaces) {
JParameterizedType parameterizedType = iface.isParameterized();
if(parameterizedType == null)
continue;
if(iface.getErasedType().getQualifiedSourceName().equals(ServiceRetryingAdapter.class.getName())) {
JClassType[] typeArgs = parameterizedType.getTypeArgs();
if(typeArgs.length != 1) {
logger.log(TreeLogger.ERROR, "ServiceRetryingAdapter interface must be parameterized to the type of object to clone", null);
throw new UnableToCompleteException();
}
generateInterface(typeArgs[0]);