Added condition for context.xml creation