public static ErrorCode isNameValid(String name) {
        if (!isMustFieldValid(name, nameRegEx)) {
            return ErrorCode.SERVICE_INSTANCE_NAME_FORMAT_ERROR;
        }
        return ErrorCode.OK;
    }
public static ErrorCode isNameValid ( String name ) { if ( ! isMustFieldValid ( name , nameRegEx ) ) { return ErrorCode . SERVICE_INSTANCE_NAME_FORMAT_ERROR ; } return ErrorCode . OK ; }
Validate the instance service name.

@param name
the service name String.
@return
OK if matched the name pattern.