protected synchronized PersonalCRUDResourceManager<UDF> getResourceManager() {
    if (resourceManager == null) {
      resourceManager = new UDFResourceManager(context);
    }
    return resourceManager;
  }
Servlet for UDFs
API:
GET /
     get all UDFs
GET /:id
     get one UDF
PUT /:id
     update UDF
POST /
     create new UDF
     Required: path, name
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/udf/UDFService.java