static void saveSchemas ( MessageStore msgStore , JMFSchema [ ] schemas ) throws MessageEncodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "saveSchemas" ) ; try { // Get the SchemaStore reference, creating a new one if necessary SchemaStoreItemStream schemaStore = getSchemaStore ( msgStore ) ; // Check if any new schemas need to be persisted to the SchemaStore for ( int i = 0 ; i < schemas . length ; i ++ ) { if ( ! schemaStore . containsSchema ( schemas [ i ] . getLongID ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Saving schema:" + schemas [ i ] . getID ( ) ) ; schemaStore . addSchema ( schemas [ i ] , msgStore . getTransactionFactory ( ) . createAutoCommitTransaction ( ) ) ; } } } catch ( MessageStoreException e ) { FFDCFilter . processException ( e , "saveSchemas" , "83" ) ; throw new MessageEncodeFailedException ( e ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "saveSchemas" ) ; }
already held in the SchemaStore for that ME are added .