Node child = children.item(0);
Element importNode = beanNode.getOwnerDocument().createElement(BeansSchemaConstants.ELEM_IMPORT);
importNode.setAttribute(BeansSchemaConstants.ATTR_RESOURCE, getResourcePath());
beansNode.insertBefore(importNode, child);
new FormatProcessorXML().formatNode(importNode);
if (project instanceof BeansProject) {
((BeansProject) project).setImportsEnabled(true);
}