Properties props = new Properties();
props.load( classLoader.getResourceAsStream( "rule-set.conf" ) );
if (props.get( "name" ) == null)
{
throw new IntegrationException( "Rule Set jar does not contain a rule-set.conf file." );
}
InputStream is = null;
ObjectInput in = null;
RuleSet ruleSet = null;
try
{
is = classLoader.getResourceAsStream( (String) props.get( "name" ) );
in = new ObjectInputStreamWithLoader( is,
classLoader );
ruleSet = (RuleSet) in.readObject();
}
catch (ClassNotFoundException e)
{
throw new IntegrationException( "Rule Set jar is not correctly formed." );
}
finally
{
if ( is != null )
{