public static KernelDeployment parse(URL url) throws JBossXBException, MalformedURLException
{
SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
Unmarshaller unmarshaller = factory.newUnmarshaller();
return (KernelDeployment) unmarshaller.unmarshal(url.toString(), resolver);
}
public static void store(KernelDeployment deployment, File binFile) throws Exception
{
FileOutputStream fos = new FileOutputStream(binFile);