code: public static HorizontalBandAlignment buildAligment(byte aligment){
  		if (aligment == RIGHT.getAlignment())
  			return RIGHT;
  		else if (aligment == LEFT.getAlignment())
  			return LEFT;
  		else if (aligment == CENTER.getAlignment())
  			return CENTER;
  
  		return LEFT;
  	}
docs: To be used with AutoText class constants ALIGMENT_LEFT, ALIGMENT_CENTER and ALIGMENT_RIGHT
  @param aligment
  @return