src/main/java/com/visiansystems/psdcmd/PsdCmd.java
public static void createTreeModel(List<Layer> layers, String prefix) {
		//
		// Run all sub-layers
		//
		for (Layer l : layers) {
			if (!l.isVisible())
				continue;

			if (l.getType() == LayerType.HIDDEN)
				continue;

			if (l.getType() == LayerType.FOLDER) {
				if (l.getLayersCount() > 0) {
					List<Layer> ls = getLayers(l);
					createTreeModel(ls, prefix);
				}
				exportLayer(l, prefix);
			} else {
				exportLayer(l, prefix);
			}
		}
	}
/**
	 * createTreeModel
	 * Run the layers to create the images.
	 * @param layers
	 * @param prefix
	 */
createTreeModel
Run the layers to create the images.
@param layers
@param prefix
createTreeModel Run the layers to create the images . @param layers @param prefix
public static void createTreeModel(List<Layer> layers, String prefix) {
		 Run all sub-layers
		for (Layer l : layers) {
			if (!l.isVisible())
				continue;
			if (l.getType() == LayerType.HIDDEN)
				continue;
			if (l.getType() == LayerType.FOLDER) {
				if (l.getLayersCount() > 0) {
					List<Layer> ls = getLayers(l);
					createTreeModel(ls, prefix);
				}
				exportLayer(l, prefix);
			} else {
				exportLayer(l, prefix);
			}
		}
	}
public static void createTreeModel ( List < Layer > layers , String prefix ) { for ( Layer l : layers ) { if ( ! l . isVisible ( ) ) continue ; if ( l . getType ( ) == LayerType . HIDDEN ) continue ; if ( l . getType ( ) == LayerType . FOLDER ) { if ( l . getLayersCount ( ) > 0 ) { List < Layer > ls = getLayers ( l ) ; createTreeModel ( ls , prefix ) ; } exportLayer ( l , prefix ) ; } else { exportLayer ( l , prefix ) ; } } }
createTreeModel
 Run the layers to create the images.
createTreeModel Run the layers to create the images .
// // Run all sub-layers //