/*
 * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.datastore.server.request;

import com.b2international.commons.ClassUtils;

/**
 * @since 4.5
 */
public final class CommitInfo {

	private final long commitTimestamp;
	private final Object result;

	CommitInfo(long commitTimestamp, Object result) {
		this.commitTimestamp = commitTimestamp;
		this.result = result;
	}
	
	public long getCommitTimestamp() {
		return commitTimestamp;
	}
	
	public Object getResult() {
		return result;
	}

	public <T> T getResultAs(Class<T> type) {
		return ClassUtils.checkAndCast(result, type);
	}
	
}

@@ -684,16 +684,46 @@
 quest;%0A%0A
+import java.io.Serializable;%0A%0A
 import c
@@ -814,18 +814,113 @@
 mitInfo 
-%7B%0A
+implements Serializable %7B%0A%0A%09private static final long serialVersionUID = -7479022976959306232L;%0A%09
 %0A%09privat

make CommitInfo serializable