/** * Apply structure metadata on context. * * @param context the structure context * @param contextInfo the new created context */ protected void applyStructure(StructureContext context, ContextInfo contextInfo) { boolean trace = log.isTraceEnabled(); if (context == null) throw new IllegalArgumentException("Null context"); VirtualFile root = context.getRoot(); applyContextInfo(context, contextInfo); context.addChild(contextInfo); if (trace) log.trace("Added context " + context + " from " + root.getName()); }