public void put(String key, Object value, Long idleTime, Long liveTime) {
Boolean eternal = idleTime==null && liveTime==null?Boolean.TRUE:Boolean.FALSE;
Integer idle = idleTime==null?null:new Integer((int)idleTime.longValue()/1000);
Integer live = liveTime==null?null:new Integer((int)liveTime.longValue()/1000);
try {
Element el = new Element();
el.setKey(key);
// TODO make text/plain for string
el.setMimeType("application/x-java-serialized-object");
el.setValue(Converter.toBytes(value));
el.setEternal(eternal);
el.setTimeToIdleSeconds(idle);
el.setTimeToLiveSeconds(live);
soap.put(name,el);
} catch (Throwable t) {
throw new RuntimeException(t);
}