public static KernelDeployment parse(File fp)
throws JBossXBException, MalformedURLException
{
long start = System.currentTimeMillis();
SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
Unmarshaller unmarshaller = factory.newUnmarshaller();
KernelDeployment deployment = (KernelDeployment) unmarshaller.unmarshal(fp.toURL().toString(), resolver);
long end = System.currentTimeMillis() - start;
System.out.println("XML parsing took: " + end);
return deployment;
}