logger.fine("Could not find declaration for: " + qualifiedName
+ ". Checking if containing type declares a single particle.");
}
if (parent.getComponent() instanceof ElementInstance) {
ElementInstance parentElement = (ElementInstance) parent.getComponent();
List childParticles = index.getChildElementParticles(parentElement
.getElementDeclaration());
if (childParticles.size() == 1) {
XSDParticle particle = (XSDParticle) childParticles.iterator().next();
XSDElementDeclaration child = (XSDElementDeclaration) particle.getContent();