code: private JavaType toJavaType(Type type) {
  		JavaType typeToFind;
      	if (type instanceof JavaType) {
      		typeToFind = (JavaType) type;
      	} else {
      		typeToFind = _mapper.constructType(type);
      	}
  		return typeToFind;
  	}
docs: Converts {@link Type} to {@link JavaType}.
  @param type object to convert
  @return object converted to {@link JavaType}