Infinispan modularity

This is for _master_ only, I'll send different pull requests for branches 4.4 and 4.5 when this is integrated as these need a slightly different solution, but would hope to get this one accepted first.

https://hibernate.atlassian.net/browse/HSEARCH-1692

The summary of the changeset is to add

    currentThread.setContextClassLoader( InfinispanConfigurationParser.class.getClassLoader() );

before parsing the Infinispan configuration file.
I have no idea on what I should expect from TCCL: this is my observation and what I'm doing here is a workaround for the current facts.
I've asked on the hibernate-dev mailing list yesterday to get clarifications on that.

Whatever the verdict around TCCL is going to be, I'm sure that setting the classloader explicitly to the JBoss Module which is loading this class is correct.

Indeed you should never rely on TCCL, except on specific situations. There is an article from David Lloyd and Jason Green which explained this a while back.