public EnterpriseResource(ResourcePool resourcePool) {
this(resourcePool==null||resourcePool.isLocal(),resourcePool);
}
public EnterpriseResource(boolean local,ResourcePool resourcePool) {
hasKey = new HasKeyImpl(local,this);
this.resourcePool = resourcePool;
if (resourcePool != null) {
workCalendar = WorkingCalendar.getInstanceBasedOn(resourcePool.getDefaultCalendar());
workCalendar.setName("");
}