parent.sampleStart(); // Start timing
try {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
Store store = session.getStore(getServerType());
<BUG>if (port > 0){
store.connect(getServer(), port, getUserName(), getPassword());

} else {
store.connect(getServer(), getUserName(), getPassword());
}</BUG>
Folder folder = store.getFolder(getFolder());

parent.sampleStart(); // Start timing
try {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
Store store = session.getStore(getServerType());
store.connect(getServer(), getPortAsInt(), getUserName(), getPassword());
Folder folder = store.getFolder(getFolder());
