private void assertOpen(){
  Assert.state(currentSegment != null,"segment manager not open");
}

private void assertOpen ( ) { Assert . state ( currentSegment != null , "segment manager not open" ) ; }
asserts that the manager is open .
