*/
public static IOperationFactory getFactory (final String riakHost, final int port, final String bucket, final String clientId, final boolean pb)
{
IOperationFactory factory = null;
try {
Configuration config = null;
if (pb) {
config = new PBClientConfig.Builder ().withHost (riakHost).withPort (port).build ();
} else {
config = new HTTPClientConfig.Builder ().withHost (riakHost).withPort (port).build ();
}