Added "if (noOfContextEntityTypeAttributeContainer != -1) ..."