if (constructionExample != null) {
request.getSession().setAttribute("constructionExampleName", (constructionExample.getExampleName() == null || constructionExample.getExampleName().trim().equals("")) ? String.valueOf(constructionExample.getExampleNumber()) : constructionExample.getExampleName());
System.out.println("CENRef"+constructionExample.getObjectConstructionId()+constructionExample);
request.getSession().setAttribute("constructionExampleNameRef", "constructionExamples.html?exampleId=" + constructionExample.getExampleId() + "&typeId=" + constructionExample.getObjectConstructionId());
ObjectConstruction objectConstruction = objectConstructionManager.getObjectConstructionForBreadCrump(String.valueOf(constructionExample.getObjectConstructionId()));
if (objectConstruction != null) {
//objectConstructionManager.evict(objectConstruction);
request.getSession().setAttribute("constructionTypeName", objectConstruction.getConstructionType().getName() );
request.getSession().setAttribute("constructionTypeNameRef", "objectConstructions.html?typeId=" + objectConstruction.getTypeId() + "&objectId=" + objectConstruction.getObjectId());
//Integer buildingObjectId = objectConstruction.getObjectId();
//setting the object to the context
BuildingObject buildingObject = buildingObjectManager.getBuildingObjectForBreadCrump(objectConstruction.getObjectId().toString());
if (buildingObject != null) {
//buildingObjectManager.evict(buildingObject);
request.getSession().setAttribute("buildingObjectName", buildingObject.getName());
request.getSession().setAttribute("buildingObjectNameRef", "buildingObjects.html?objectId=" + buildingObject.getObjectId());
}