code: public void removeExistingBody(/* @Nullable */ JvmMember member) {
  		if (member != null) {
  			// We have to be careful how to remove existing adapters due to an EMF bug:
  			// https://bugs.eclipse.org/bugs/show_bug.cgi?id=462451
  			Object[] adapters = member.eAdapters().toArray();
  			for (int i = 0, j = 0; i < adapters.length; i++) {
  				if (adapters[i] instanceof CompilationStrategyAdapter
  						|| adapters[i] instanceof CompilationTemplateAdapter) {
  					member.eAdapters().remove(j);
  				} else {
  					j++;
  				}
  			}
  			associator.removeLogicalChildAssociation(member);
  		}
  	}
docs: Detaches any existing bodies from the {@link JvmMember}.
  A body could be a logically container {@link XExpression} or a
  black box compilation strategy.
  
  @param member the member to remove the body from