* Note: property values are not merged.
*/
public void merge(CodeFragmentDescriptor cfSrc) throws RampException
{
if (!this.getName().equals(cfSrc.getName()))
throw new RampException(String.format("Can't merge code fragments %s and %s as they have different names",
this.getName(), cfSrc.getName()));
if (this.getCodeFragmentType() != cfSrc.getCodeFragmentType())
throw new RampException(String.format("Can't merge code fragments %s and %s as they have different types %s and %s",
this.getName(), cfSrc.getName(), this.getCodeFragmentType(), cfSrc.getCodeFragmentType()));
//Merging parameters
Set<CodeFragmentParam> strParamNames = cfSrc.getParameters().keySet();
for (CodeFragmentParam paramType:strParamNames)