code: public static String getSarlCodeFor(EObject object) {
  		final ICompositeNode node = NodeModelUtils.getNode(object);
  		if (node != null) {
  			String text = node.getText();
  			if (text != null) {
  				text = text.trim();
  				text = text.replaceAll("[\n\r\f]+", " "); //$NON-NLS-1$//$NON-NLS-2$
  			}
  			return Strings.emptyToNull(text);
  		}
  		return null;
  	}
docs: Replies the original code for the given Ecore object.
  
  <p>The replied code is the SARL code within the source file. It's format depends on
  how the developer has input it.
  
  <p>This function does:<ul>
  <li>replace any sequence of "new line" characters by a space character, and</li>
  <li>trim the whitespaces.</li>
  </ul>
  
  @param object the object to search the code for.
  @return the SARL code for the given object, or {@code null} if no code was found.
  @since 0.7