}
public boolean determineStructure(VirtualFile file, StructureContext parentContext) throws DeploymentException
{
StructureMetaData structure = StructureMetaDataFactory.createStructureMetaData();
StructureContext context = new StructureContext(file, structure, parentContext);
boolean result = doDetermineStructure(context);
if (result)
{
String relativePath = AbstractStructureDeployer.getRelativePath(context.getParent(), file);
// Something said it recognised it
ContextInfo recognised = structure.getContext("");
if (recognised == null)
throw new IllegalStateException("Something recognised the deployment, but there is no context? " + file);