private ResourceImpl aggregate(ResourceImpl resourceA,ResourceImpl resourceB) throws NotFoundException {
  final String typeId=resourceA.getType();
  final ResourceType resourceType=getResourceType(typeId);
  return resourceType.aggregate(resourceA,resourceB);
}

private ResourceImpl aggregate ( ResourceImpl resourceA , ResourceImpl resourceB ) throws NotFoundException { final String typeId = resourceA . getType ( ) ; final ResourceType resourceType = getResourceType ( typeId ) ; return resourceType . aggregate ( resourceA , resourceB ) ; }
aggregates two resources which have the same type .
