private static void checkAttachmentPoint ( Monomer mon , String str ) throws AttachmentException { if ( ! ( mon . getAttachmentListString ( ) . contains ( str ) ) ) { if ( ! ( str . equals ( "?" ) || str . equals ( "pair" ) ) && ! mon . getAlternateId ( ) . equals ( "?" ) ) { LOG . info ( "Attachment point for source is not there" ) ; throw new AttachmentException ( "Attachment point for source is not there: " + str ) ; } } }
method to check the attachment point s existence