Session session;
try
{
session = session(repoName, workspaceName(repoPath), lockTokens(lockTokenHeader, ifHeader));
return new CheckInCommand().checkIn(session, path(repoPath));
}
catch (Exception exc)
{
log.error(exc.getMessage(), exc);
return Response.serverError().entity(exc.getMessage()).build();