public static Monomer convertMonomer(Monomer m) throws ChemistryException{
		
		/*convert SMILES*/
		String smiles =  m.getCanSMILES();
		LOG.debug("originalSMILES: " + smiles);
		String convertedSMILES = Chemistry.getInstance().getManipulator().convertExtendedSmiles(smiles);
		m.setCanSMILES(convertedSMILES);
		
		
		/*convert Attachments*/
		for(Attachment a : m.getAttachmentList()){
			smiles = a.getCapGroupSMILES();
			convertedSMILES =  Chemistry.getInstance().getManipulator().convertExtendedSmiles(smiles);
			a.setCapGroupSMILES(convertedSMILES);
		}
		
		/*merge Attachments into Smiles*/
		m.setCanSMILES(mergeAttachmentsIntoSmiles(m.getCanSMILES(), m.getAttachmentList()));
		
		return m;
	}
public static Monomer convertMonomer ( Monomer m ) throws ChemistryException { String smiles = m . getCanSMILES ( ) ; LOG . debug ( "originalSMILES: " + smiles ) ; String convertedSMILES = Chemistry . getInstance ( ) . getManipulator ( ) . convertExtendedSmiles ( smiles ) ; m . setCanSMILES ( convertedSMILES ) ; for ( Attachment a : m . getAttachmentList ( ) ) { smiles = a . getCapGroupSMILES ( ) ; convertedSMILES = Chemistry . getInstance ( ) . getManipulator ( ) . convertExtendedSmiles ( smiles ) ; a . setCapGroupSMILES ( convertedSMILES ) ; } m . setCanSMILES ( mergeAttachmentsIntoSmiles ( m . getCanSMILES ( ) , m . getAttachmentList ( ) ) ) ; return m ; }
@param m given Monomer
@return Monomer with converted smiles
@throws ChemistryException if chemistry engine can not be initialized