JClassType returnTypeClass = returnType.isClassOrInterface();
if (returnTypeClass != null)
{
String controllerName = null;
Target target = method.getAnnotation(Target.class);
if (target != null)
{
controllerName = target.value();
String controller = ClientControllers.getController(controllerName, Device.valueOf(getDeviceFeatures()));
JClassType controllerType = context.getTypeOracle().findType(controller);
if (controllerType == null)
{
throw new CruxGeneratorException("Error generating method ["+method.getName()+"] from ControllerAccessor ["+method.getEnclosingType().getQualifiedSourceName()+"]. Can not identify the controller type.");