public void start() {
try
{
jcs = JCS.getInstance( "myregion" );
// jcs.getDefaultElementAttributes returns a copy not a reference
IElementAttributes attributes = jcs.getDefaultElementAttributes();
// set some special value
attributes.setIsEternal( true );
jcs.put( "key", "data", attributes );
}
catch(Exception exception) {
exception.printStackTrace();
}