public void create(Feature fp) {
if (fp == null) {
throw new IllegalArgumentException("Feature cannot be null nor empty");
}
if (exist(fp.getUid())) {
throw new FeatureAlreadyExistException(fp.getUid());
}
// Now can process upsert through PUT HTTP method
ClientResponse cRes = getStore().path(fp.getUid()).put(ClientResponse.class, fp.toString().getBytes());
// Check response code CREATED or raised error
if (Status.CREATED.getStatusCode() != cRes.getStatus()) {