public static ReleaseId toReleaseId(String releaseId) {
        if (releaseId != null) {
            String[] gav = releaseId.split(":", 3);
            String groupId = gav.length > 0 ? gav[0] : null;
            String artifactId = gav.length > 1 ? gav[1] : null;
            String version = gav.length > 2 ? gav[2] : null;
            return KieServices.Factory.get().newReleaseId(groupId, artifactId, version);
        }
        return null;
    }
public static ReleaseId toReleaseId ( String releaseId ) { if ( releaseId != null ) { String [ ] gav = releaseId . split ( ":" , 3 ) ; String groupId = gav . length > 0 ? gav [ 0 ] : null ; String artifactId = gav . length > 1 ? gav [ 1 ] : null ; String version = gav . length > 2 ? gav [ 2 ] : null ; return KieServices . Factory . get ( ) . newReleaseId ( groupId , artifactId , version ) ; } return null ; }
Converts a colon (':') separated string into a ReleaseId.

@param releaseId the string
@return the ReleaseId