Checkout
localWTPart1 = (WTPart)WorkInProgressHelper.service.checkout(localWTPart1, WorkInProgressHelper.service.getCheckoutFolder(), null).getWorkingCopy();
Checkin
localWTPart1 = (WTPart)WorkInProgressHelper.service.checkin(localWTPart1, "Checkin comment");