Javascript command handler for calculatePartition Java binding procedure.