private boolean isCommonServiceParent(String parent) {
    return parent != null
        && !parent.isEmpty()
        && parent.split(StackManager.PATH_DELIMITER)[0].equalsIgnoreCase(StackManager.COMMON_SERVICES);
  }
Check if parent is common service
@param parent  Parent string
@return true: if parent is common service, false otherwise
ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java