@Override
  public PigScript create(PigScript object) {
    super.create(object);
    if (object.getPigScript() == null || object.getPigScript().isEmpty()) {
      createDefaultScriptFile(object);
    }
    return object;
  }
Constructor
@param context View Context instance
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/scripts/ScriptResourceManager.java