question: public static MosaicId parse ( final String mosaicId ) { final Matcher matcher = MOSAIC_ID_PATTERN . matcher ( mosaicId ) ; if ( ! matcher . matches ( ) ) { throw new IllegalArgumentException ( String . format ( "pattern '%s' could not be parsed" , mosaicId ) ) ; } return new MosaicId ( new NamespaceId ( matcher . group ( 1 ) ) , matcher . group ( 2 ) ) ; }
target:  Creates a mosaic id from a string.